/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/

#ifndef __STDDEF_H__
#define __STDDEF_H__

typedef unsigned size_t;
typedef long long int ptrdiff_t;

#define NULL ((void*)0)

#define offsetof(st, f) \
  ((size_t) ((char*)&(((st*)0)->f) - (char*)0))

#endif /* !__STDEF_H__ */
